//------------------------------------------------------------------------------ 
// <copyright file="Animation.cs" company="Fm Computer">
//     Copyright (c) Fm Computer di Menatti Fulvia.  All rights reserved.
// </copyright>
//----------------------------------------------------------------------------- 
namespace FmjQuery
{
    using System.Web.UI;

    /// <summary>
    /// Animation Descriptor
    /// </summary>
    public class Animation
    {
        #region Field
        /// <summary>
        /// List of animation step
        /// </summary>
        private AnimationSteps tsteps;
        #endregion

        #region Property
        /// <summary>
        /// Gets or sets Event that call animation
        /// </summary>
        public ClientEvents Event 
        { 
            get; 
            set;
        }

        /// <summary>
        /// Gets List of steps
        /// </summary>
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public AnimationSteps Steps
        {
            get
            {
                if (this.tsteps == null)
                {
                    this.tsteps = new AnimationSteps();
                }

                return this.tsteps;
            }
        }

        /// <summary>
        /// Gets or sets id of control that active animation
        /// </summary>
        public string ActiveAnimationIDControl 
        { 
            get; 
            set; 
        }

        /// <summary>
        /// Gets or sets a value indicating whether Active control is client
        /// </summary>
        public bool IsClientActiveControl 
        { 
            get; 
            set; 
        }
        #endregion
    }
}